<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class Publicdata extends Model {

    function Publicdata() {
        parent::Model();
    }

    function index() {

    }

    function get_setting_sitename() {
        $this->db->select('value');
        $this->db->where('id','1');
        return $this->db->get('setting');
    }

    //获取当前激活的学期
    function get_current_year() {
        $query=$this->db->query("select * from year where current='1'");
        return $query;
    }

}
?>